package com.sun.eureka.controller;


import java.math.BigDecimal;
import java.util.Date;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sun.eureka.entry.Order;

@RestController
public class OrderController {
	
	/**
	 * 根据id查询客户信息
	 * @param id
	 * @return
	 */
	@RequestMapping("order/{id}")
	public Order get(@PathVariable("id") Long id) {
		return new Order(id, "E201810300002", new Date(), 1l, new BigDecimal(120.5d),1l);
	}
	
}
